package com.frogs.ucenter.service.daoimpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserShippingAddressDao;
import com.frogs.ucenter.entity.UserShippingAddressWithAreaCode;
import com.frogs.ucenter.service.UserShippingAddressService;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userShippingAddressService")
public class UserShippingAddressServiceImpl extends BaseServiceImpl<UserShippingAddressWithAreaCode> implements UserShippingAddressService {
    @Autowired
    private UserShippingAddressDao userShippingAddressDao;

    public UserShippingAddressServiceImpl() {
        super();
    }

    public UserShippingAddressDao getUserShippingAddressDao() {
        return userShippingAddressDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserShippingAddressWithAreaCode> getBaseDao() {
        return userShippingAddressDao;
    }

    public void setUserShippingAddressDao(UserShippingAddressDao userShippingAddressDao) {
        this.userShippingAddressDao = userShippingAddressDao;
    }
}